package com.wiloon.java8x.proxy;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.util.List;

/**
 * Created by wiloon on 7/30/14.
 */
public class ProxyFinder {
    private static Logger logger = LoggerFactory.getLogger(ProxyFinder.class);

    public static void main(String[] args) {
        logger.debug("main...");


    }

    public List<ProxyServer> execute() {
        //get web page
        String url = "http://www.xici.net.co/wn/";

        try {
            String response = HttpHelper.httpGet(url);
            logger.debug("response={}", response);


        } catch (IOException e) {
            e.printStackTrace();
        }
        //find proxy ip and port
        //check proxy health
        //print out
        return null;
    }
}
